home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- cursor(4)
- if count(the windowList) = 0 then
- clearGlobals()
- unLoad()
- case #b of
- #a:
- fn = "congress"
- #b:
- fn = "poprace"
- #c:
- fn = "compound"
- #ct:
- fn = "commtech"
- #cg:
- fn = "congress"
- #cs:
- fn = "products"
- #d:
- fn = "discount"
- #i:
- fn = "immigrat"
- #in:
- fn = "income"
- otherwise:
- fn = "popage"
- end case
- fn = fn & ".cst"
- init(fn && "Immigration and Naturalization Service worker", fn)
- end if
- end
-
- on CloseMIAW
- global gDBTableVarList, gForgetList
- go(the frame + 1)
- MyObj = getaProp(gDBTableVarList, GetObjProp())
- deleteProp(gDBTableVarList, GetObjProp())
- append(gForgetList, the activeWindow)
- end
-
- on convertTable
- memberIndex = 100
- rectList = member(1, 3).text
- repeat with n = 1 to 6
- tableMem = member(n + 2, 3)
- fieldMem = new(#field, member(19 + n, 3))
- memberIndex = memberIndex + 1
- fieldMem.text = string(tableMem.tableData)
- tmpRect = value(rectList.line[n])
- if tmpRect.left > 0 then
- repeat with row = 1 to tableMem.rowCount
- repeat with Col = 1 to tableMem.columnCount
- bitmapMem = new(#bitmap, member(memberIndex, 3))
- memberIndex = memberIndex + 1
- bitmapMem.name = string("Table" && n && "Row" && row && "Col" && Col)
- getCellBitmap(tableMem, point(Col, row), bitmapMem)
- putCell(tableMem, point(Col, row), bitmapMem)
- end repeat
- end repeat
- end if
- end repeat
- end
-
- on convertTables
- repeat with filenum = 1 to 9999
- fName = getNthFileNameInFolder(the moviePath & "tblcast:", filenum)
- if fName = EMPTY then
- exit repeat
- end if
- if fName = "Tabled.cst" then
- next repeat
- end if
- castLib(3).fileName = the moviePath & "tblcast:" & fName
- convertTable()
- save(castLib(3))
- end repeat
- end
-